Hi Ray,
There is a CheckThreadX Console Command that will return whether or not a thread is running.
TK
Group: DynoMotion |
Message: 3919 |
From: himykabibble |
Date: 2/16/2012 |
Subject: Re: How To Tell If A Thread Is Running.... |
Tom,
That one is not listed in the Help....
Regards,
Ray L.
--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Ray,
> Â
> There is a CheckThreadX Console Command that will return whether or not a thread is running.
> Â
> TK
>
> From: himykabibble <jagboy@...>
> To: DynoMotion@yahoogroups.com
> Sent: Thursday, February 16, 2012 3:02 PM
> Subject: [DynoMotion] How To Tell If A Thread Is Running....
>
>
> Â
> Yesterday, I thought I finally had almost everything sorted, but today, things are truly screwed up. But today, when I try to run my Home or Probe programs, the whole system goes completely nuts - the display goes insane, CompileAndLoad always fails, and the only recovery is kill the app, and power cycle the board. I've traced the problem down to the one place in my app where I still do a call to KM_Controller.UpdateMainStatus(), in order to test whether a particular thread is running. If I comment out that call, all is well. So, since we know UpdateMainStatus is broken in v428, is there a way to work around this?
>
> Regards,
> Ray L.
>
|
|
Group: DynoMotion |
Message: 3920 |
From: himykabibble |
Date: 2/16/2012 |
Subject: Re: How To Tell If A Thread Is Running.... |
That has solved my problem. Odd that it never behaved like that before, and I haven't touched that code in a month or so.
Any ETA on the release of v429?
Regards,
Ray L.
--- In DynoMotion@yahoogroups.com, "himykabibble" <jagboy@...> wrote:
>
> Tom,
>
> That one is not listed in the Help....
>
> Regards,
> Ray L.
>
> --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote:
> >
> > Hi Ray,
> > Â
> > There is a CheckThreadX Console Command that will return whether or not a thread is running.
> > Â
> > TK
> >
> > From: himykabibble <jagboy@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Thursday, February 16, 2012 3:02 PM
> > Subject: [DynoMotion] How To Tell If A Thread Is Running....
> >
> >
> > Â
> > Yesterday, I thought I finally had almost everything sorted, but today, things are truly screwed up. But today, when I try to run my Home or Probe programs, the whole system goes completely nuts - the display goes insane, CompileAndLoad always fails, and the only recovery is kill the app, and power cycle the board. I've traced the problem down to the one place in my app where I still do a call to KM_Controller.UpdateMainStatus(), in order to test whether a particular thread is running. If I comment out that call, all is well. So, since we know UpdateMainStatus is broken in v428, is there a way to work around this?
> >
> > Regards,
> > Ray L.
> >
>
|
|
Group: DynoMotion |
Message: 3921 |
From: Brad Murry |
Date: 2/16/2012 |
Subject: Re: How To Tell If A Thread Is Running.... |
Hello Ray, Something else I have done on a recent project to control program flow is setting a persist flag in my .c file. Then I can poll the GetUserData(int) to see the state change throughout execution. The MainStatus is quite stable and performs very well as a struct in the new API release, so it will certainly be worth re-implementing it’s use. There is a GetStatus method that accepts a bool to lock token or not. More useful is the CurrentStatus property that will return a MainStatus struct and update it based on the maximum age you specify from another property. It uses Environment.Ticks to determine it’s age so there is no polling to get recent copies. Environment.Ticks is also very accurate and lightweight to use in this application. -Brad Murry From: DynoMotion@yahoogroups.com [mailto:DynoMotion@yahoogroups.com] On Behalf Of himykabibble Sent: Thursday, February 16, 2012 6:14 PM To: DynoMotion@yahoogroups.com Subject: [DynoMotion] Re: How To Tell If A Thread Is Running.... That has solved my problem. Odd that it never behaved like that before, and I haven't touched that code in a month or so.
Any ETA on the release of v429?
Regards, Ray L.
--- In DynoMotion@yahoogroups.com, "himykabibble" <jagboy@...> wrote: > > Tom, > > That one is not listed in the Help.... > > Regards, > Ray L. > > --- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@> wrote: > > > > Hi Ray, > > Â > > There is a CheckThreadX Console Command that will return whether or not a thread is running. > > Â > > TK > > > > From: himykabibble <jagboy@> > > To: DynoMotion@yahoogroups.com > > Sent: Thursday, February 16, 2012 3:02 PM > > Subject: [DynoMotion] How To Tell If A Thread Is Running.... > > > > > > Â > > Yesterday, I thought I finally had almost everything sorted, but today, things are truly screwed up. But today, when I try to run my Home or Probe programs, the whole system goes completely nuts - the display goes insane, CompileAndLoad always fails, and the only recovery is kill the app, and power cycle the board. I've traced the problem down to the one place in my app where I still do a call to KM_Controller.UpdateMainStatus(), in order to test whether a particular thread is running. If I comment out that call, all is well. So, since we know UpdateMainStatus is broken in v428, is there a way to work around this? > > > > Regards, > > Ray L. > > >
|
|
Group: DynoMotion |
Message: 3922 |
From: himykabibble |
Date: 2/16/2012 |
Subject: Re: How To Tell If A Thread Is Running.... |
Brad,
All sounds good. When do we get it?
Regards,
Ray L.
--- In DynoMotion@yahoogroups.com, Brad Murry <bradodarb@...> wrote:
>
> Hello Ray,
>
>
>
> Something else I have done on a recent project to control program flow is
> setting a persist flag in my .c file.
>
>
>
> Then I can poll the GetUserData(int) to see the state change throughout
> execution.
>
>
>
> The MainStatus is quite stable and performs very well as a struct in the new
> API release, so it will certainly be worth re-implementing it's use.
>
>
>
> There is a GetStatus method that accepts a bool to lock token or not.
>
>
>
> More useful is the CurrentStatus property that will return a MainStatus
> struct and update it based on the maximum age you specify from another
> property. It uses Environment.Ticks to determine it's age so there is no
> polling to get recent copies.
>
>
>
> Environment.Ticks is also very accurate and lightweight to use in this
> application.
>
>
>
>
>
> -Brad Murry
>
>
>
> From: DynoMotion@yahoogroups.com [mailto:DynoMotion@yahoogroups.com] On
> Behalf Of himykabibble
> Sent: Thursday, February 16, 2012 6:14 PM
> To: DynoMotion@yahoogroups.com
> Subject: [DynoMotion] Re: How To Tell If A Thread Is Running....
>
>
>
>
>
> That has solved my problem. Odd that it never behaved like that before, and
> I haven't touched that code in a month or so.
>
> Any ETA on the release of v429?
>
> Regards,
> Ray L.
>
> --- In DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com> ,
> "himykabibble" <jagboy@> wrote:
> >
> > Tom,
> >
> > That one is not listed in the Help....
> >
> > Regards,
> > Ray L.
> >
> > --- In DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com> ,
> Tom Kerekes <tk@> wrote:
> > >
> > > Hi Ray,
> > > Â
> > > There is a CheckThreadX Console Command that will return whether or not
> a thread is running.
> > > Â
> > > TK
> > >
> > > From: himykabibble <jagboy@>
> > > To: DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com>
> > > Sent: Thursday, February 16, 2012 3:02 PM
> > > Subject: [DynoMotion] How To Tell If A Thread Is Running....
> > >
> > >
> > > Â
> > > Yesterday, I thought I finally had almost everything sorted, but today,
> things are truly screwed up. But today, when I try to run my Home or Probe
> programs, the whole system goes completely nuts - the display goes insane,
> CompileAndLoad always fails, and the only recovery is kill the app, and
> power cycle the board. I've traced the problem down to the one place in my
> app where I still do a call to KM_Controller.UpdateMainStatus(), in order to
> test whether a particular thread is running. If I comment out that call, all
> is well. So, since we know UpdateMainStatus is broken in v428, is there a
> way to work around this?
> > >
> > > Regards,
> > > Ray L.
> > >
> >
>
|
|
| |